package day9;

import java.util.Scanner;

public class t7 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.print("请输入身份证号：");
        String id=sc.next();
        String str1=id.substring(6,10)+'年'+id.substring(10,12)+'月'+id.substring(12,14)+'日';
        System.out.println(str1);
        if((id.charAt(16)-'0')/2==0) System.out.println("女");
        else System.out.println("男");

    }
}
